package com.yunshang.shoppingmall.service.impl;

import com.yunshang.shoppingmall.entity.Product;
import com.yunshang.shoppingmall.entity.ProductClassfy;
import com.yunshang.shoppingmall.mapper.ProductClassfyMapper;
import com.yunshang.shoppingmall.service.ProductClassfyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("productClassfyService")
public class ProductClassfyServiceImpl implements ProductClassfyService {

    @Autowired
    ProductClassfyMapper productClassfyMapper;

    @Override
    public int insert(ProductClassfy record) {
        return productClassfyMapper.insert(record);
    }

    @Override
    public int insertSelective(ProductClassfy record) {
        return productClassfyMapper.insertSelective(record);
    }

    @Override
    public List<ProductClassfy> selectProductClassfy(Product product) {
        return productClassfyMapper.selectProductClassfy(product);
    }

    @Override
    public int selectCount() {
        return productClassfyMapper.selectCount();
    }
}
